<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, user-scalable=no">
	<style type="text/css">
		*{padding:0;margin:0;}
		a:link{color:#fff;}
		a:visited{color:#fff;}
		a:hover{color:#fff;}
		a:active{color:#fff;}
		ul li{
			list-style: none;
		}
		html,body{
			width:100%;
			height:100%;
		}
		body{background:url(images/body_bg.png) no-repeat center;
			background-size:cover; 
		}
		.width-50{
			width:50%;
		}
		.inline-block{
			display: inline-block;
		}
		.link{
			text-decoration: underline;
			position:absolute;
			top:20px;right:20px;
			color:#fff;
		}
		.wrap{
		    padding-top:33%;
		    width: 100%;
		}
		.input{
			display: block;
		    border: none;
		    border-radius: 10px;
		    padding: 5px 10%;
		    height:22px;
		    line-height: 35px;
		    outline: none;
		    margin: 0 auto;
		    width: 65%;
		    background: #92a4dd url(images/zoom.png) no-repeat 8px 6px;
		    background-size: 6%;
		    margin-bottom: 10px;
		}
		.input::-webkit-input-placeholder{
		    color: #575757;opacity:1;
		}
		.wrap-box {
		    background: #fff;
		    padding: 3%;
		    width: 90%;
    		margin: 0 auto;
		}
		.ul_list{
    		background: #fff;
		}
		.ul_list li{
    		background: #f7f8f8;
    		overflow: hidden;
    		margin-bottom: 15px;
		}
		.left_box{
		    width: 50%;
			float: left;
			border:1px solid #ccc;
		}
		.left_box>img{
			width:100%;
			height:auto;	
		}
		.right_box{
			width:40%;
			float: left;
			font-size: 14px;
			line-height: 1.5;
		    display: inline-block;
		    padding-left: 10px;
		}
		.a-btn{
			position: relative;
    		top: -4px;
			width: 40%;
		    height: 30px;
		    line-height: 30px;
		    text-align: center;
		    background: #6350c3;
		    border-radius: 20px;
		    color: #fff;
		}
		.cont-wrap{
			padding:0 10px;
		}
		.cont-wrap p{
			width:100%;
			padding-bottom: 5px;
			overflow: hidden;
            white-space: nowrap;
            text-overflow:ellipsis;
		}
		.next-btn{
			display: block;
			width:80px;
			height: 35px;
    		line-height: 35px;
			margin:0 auto;
			color:#000!important;
			text-decoration: none;
			background: url(images/next-btn.png) no-repeat right;
		}
		.dropload-noData{
			text-align: center;
			color:#ccc; 
		}

	</style>
</head>
<body>
	<a class="link">[活动详情]</a>
	<div class="wrap">
		<input type="text" class="input" placeholder="请输入经销商门店或服务顾问姓名">
		<div class="wrap-box">
		<div id="scroller">
			<article class="khfxWarp">
			  	<ul id="www" class="ul_list khfxPane" style="display:block">

				</ul>
			</article>
		</div>
		<a class="next-btn" href="javascript:;">下一页</a>
		</div>
	</div>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="../ActivityCommon/js/acivityCommon.js"></script>
<script src="js/dropload.js"></script>
<!-- <script src="js/khData.js"></script> -->
<script src="js/share.js"></script>


<script type="text/javascript">
$(function(){
	$.ajax({
// 		headers:{'Cookie':document.cookie},
		type:"POST", 
	    url:"http://127.0.0.1:9035/pointActivity/api/v1/insertVoter",
// 	    url:rootPath + "/pointActivity/api/v1/insertVoter",
	    dataType:"json",
	    contentType:"application/json",
	    success:function(data){
	    	if(data.message == '0'){
	    		showAlert("您还不是会员或车主，无法参与投票！",hideAlert);
	    	}
	    }
	})
	
	$('.link').click(function(){
		window.location.replace(rootPath + "/views/gmmcActivity/ServiceStar/vote.html");	
	});
	
	
// 	$.ajax({
// 		headers:{'Cookie':document.cookie},
// 		type:"POST", 
// 	    url:"http://127.0.0.1:9035/pointActivity/api/v1/getAdvisor",
// 	    url:rootPath + "/pointActivity/api/v1/insertVoter",
// 	    dataType:"json",
// 	    contentType:"application/json",
// 	    success:function(data){
// 	    	console.log(data);
// 	    	var list = data.resultList;
// 	    	if(list.length > 0){
// 	    		$('#khfxPane').empty();
// 	    		var insertHtml = "";
// 	    		for(var i = 0; i < list.length; i++){
// 	    			insertHtml +="<li>";
// 	    				insertHtml +="<div class='left_box'>";
// 	    					insertHtml +="<img class='block' src='"+list[i].ADVISOR_PHOTO+"' alt=''>";
// 	    					insertHtml +="<div class='cont-wrap'>";
// 	    						insertHtml +="<p>"+list[i].ADVISOR_ID+"."+list[i].ADVISOR_NAME+"</p>";
// 	    						insertHtml +="<span class='inline-block width-50'>"+list[i].TICKETS+"票"+"</span>";
// 	    						insertHtml +="<a class='inline-block a-btn'>投票</a>";
// 	    					insertHtml +="</div>";
// 	    				insertHtml +="</div>";
// 	    				insertHtml +="<div class='right_box'>";
// 	    					insertHtml +="<p>姓名："+list[i].ADVISOR_NAME+"</p>";
// 	    					insertHtml +="<p>店名："+list[i].DEALER_NAME+"</p>";
// 	    					insertHtml +="<p>参赛宣言：</p>";
// 	    					insertHtml +="<p>"+list[i].ADVISOR_DECLARATION+"</p>";
// 	    				insertHtml +="</div>";
// 	    			insertHtml +="</li>";
// 	    			console.log(insertHtml);
// 	    			$('#khfxPane').append(insertHtml);
// 	    		}
// 	    	}
// 	    }
// 	});
	
// 	$(".a-btn").click(function(){
// 		$.ajax({
// 			headers:{'Cookie':document.cookie},
// 			type:"POST", 
// 		    url:"http://127.0.0.1:9035/pointActivity/api/v1/doVote",
// 		    url:rootPath + "/pointActivity/api/v1/doVote",
// 		    dataType:"json",
// 		    contentType:"application/json",
// 		    success:function(data){
		    	
// 		    }
// 		})
// 	});
});
	
</script>
</body>
</html>